<?php

class Home extends CI_Controller {
	
	public function __construct()
    {
        parent::__construct();
		//$this->load->model('home_model');
		$this->load->model('country_model');
		$this->load->model('station_tv_model');
	}
	
	public function index()
	{
		$data['country']	  = $this->country_model->get_country();
		$data['station_tv']   = '';
		$data['main_content'] = 'umum/list';
		$this->load->view('includes/template', $data);
	}
	
	public function country()
	{
		$id = $this->uri->segment(3);
		$data['country']	  = $this->country_model->get_country();
		$data['station_tv']   = $this->station_tv_model->get_station_tv_by_country($id);
		$data['main_content'] = 'umum/list';
		$this->load->view('includes/template', $data);
	}
	
	public function live()
	{
		$data['main_content'] = 'umum/list';
		$this->load->view('includes/template', $data);
	}
	
}